FROM docker.io/mysql:5.7
MAINTAINER xiaobo@yunshicloud.com
LABEL version="1.0" description="这是新闻智能拆条分析服务的数据库服务"
ENV WORK_HOME /root
WORKDIR $WORK_HOME
ENV MYSQL_ROOT_PASSWORD=123456
ENV MYSQL_DATABASE=newspower
ENV max-connections=2000
	
RUN rm /etc/localtime

ADD ./localtime /etc
ADD ./newspower.sql /docker-entrypoint-initdb.d
ADD ./mysqld.cnf /etc/mysql/mysql.conf.d
EXPOSE 3306
